<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Confirm.aspx.cs" Inherits="ServerSideConfirm"
    Title="Confirm Server Side Example" MasterPageFile="~/Shared/Default.master" %>

<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
	<!--Topo Pesquisa-->	
	<div class="divNovaPesquisa" id="divNovaPesquisa">
        <div class="divNovaPesquisaIconeLupa"></div>
        <bovespa:Label runat="server" ID="lblPesquisa" Text="Pesquisa"></bovespa:Label>
        <div class="divNovaPesquisaLatDir"></div>
        <div id="divSetaPesquisa" class="divNovaPesquisaSetaAberto" onclick="ShowHideFilter(true);"></div>
    </div>
	<!--Corpo Pesquisa-->
	<div id="divPesquisa" class="divCaixa00">
		<div class="divCaixa00BorSup">
			<div class="divCaixa00CanSupEsq"></div>
			<div class="divCaixa00CanSupDir"></div>
		</div>
		<div class="divCaixa00BorEsq">
			<div class="divCaixa00BorDir">
				<div class="divCaixa00Conteudo" style="position:relative;">
					<span class="spnSignificadoAsterisco">(*) Campos obrigatorios</span>					
					<fieldset class="fldFormularioPesquisa">
					</fieldset>
                    <div class="divBotoesNavegacao2b">					
					    <bovespa:Button ID="btnPesquisa" runat="server" Text="Pesquisar" CssClass="btnBotao00" OnClientClick="ShowHideFilter();" OnClick="btnPesquisa_Click" />
					    <bovespa:Button ID="btnCancelar" runat="server" Text="Cancelar" CssClass="btnBotao00" CausesValidation="false" />
					</div>
				</div>
			</div>
		</div>
		<div class="divCaixa00BorInf">
			<div class="divCaixa00CanInfEsq"></div>
			<div class="divCaixa00CanInfDir"></div>
		</div>
	</div>
	<div class="divPontilhado"></div>
	<!--Grid-->
	<div class="divGrid00">
		<bovespa:Grid ID="grdServerSideConfirm" runat="server" PageSize="8" 
		    OnNeedDataSource="grdServerSideConfirm_NeedDataSource"
		    OnItemCommand="grdServerSideConfirm_ItemCommand">
	        <MasterTableView>
	        <Columns>
	            <bovespa:GridBoundColumn DataField="ProductId" HeaderText="Product ID" HeaderStyle-Width="100px" />
	            <bovespa:GridBoundColumn DataField="ProductName" HeaderText="Product Name" HeaderStyle-Width="250px" />
	            <bovespa:GridBoundColumn DataField="ProductDescription" HeaderText="Product Description" HeaderStyle-Width="250px" />
	            <bovespa:GridTemplateColumn HeaderText="Remover" HeaderStyle-Width="100px">
	                <ItemTemplate>
	                    <bovespa:Button ID="btnExcluir" runat="server" Text="Excluir" CommandArgument="Remover" BorderWidth="1px" />
	                </ItemTemplate>
                </bovespa:GridTemplateColumn>
	        </Columns> 	        
	        </MasterTableView>
        </bovespa:Grid>
	</div>
	<bovespa:AjaxLoadingPanel ID="pnlLoadingGrid" runat="server" Size="Large" />
	<bovespa:AjaxManager ID="ajmServerSideConfirm" runat="server" OnAjaxRequest="AjaxManagerRequest">
        <AjaxSettings>
            <bovespa:AjaxSetting AjaxControlID="btnPesquisa">
                <UpdatedControls>
                    <bovespa:AjaxUpdatedControl ControlID="grdServerSideConfirm" LoadingPanelID="pnlLoadingGrid" />
                </UpdatedControls>
            </bovespa:AjaxSetting>
            <bovespa:AjaxSetting AjaxControlID="ajmServerSideConfirm">
                <UpdatedControls>
                    <bovespa:AjaxUpdatedControl ControlID="grdServerSideConfirm" LoadingPanelID="pnlLoadingGrid" />
                </UpdatedControls>
            </bovespa:AjaxSetting>
        </AjaxSettings>
    </bovespa:AjaxManager>
</asp:Content>
